N=int(input())
a=1
for i in range(2,N+1):
    if i%2==0:
        a +=i
    else:
        a-=i
print(a)